# coding=utf-8

__author__ = 'redsxz(bronze1man@gmail.com)'
__version__ = '0.3.8'

import datetime
import wsgiref.handlers
from google.appengine.ext import webapp

class MainPage(webapp.RequestHandler):
    def get(self):
        self.response.headers["Content-Type"] = "text/html; charset=utf-8"
        self.response.out.write( \
"""
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>hello everyone!</title>
    </head>
    <body>
        <b><h1>hello everyone!</h1></b></p>
        server time :%s
    </body>
</html>
""" % str(datetime.datetime.now()))
        
application = webapp.WSGIApplication([
  ('/.*', MainPage),
], debug=True)

def main():
  wsgiref.handlers.CGIHandler().run(application)


if __name__ == '__main__':
  main()
